<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件-系统事件</title>

</head>
<body>
<select  id="sltCity">

</select>


<button id="btnSubmit">提交</button>
</body>
<script src="mock/cities.js"></script>
<script src="js/8.event-2.js"></script>
<script>

  /**
   * 系统事件
   *   change
   *   load
   * */

 // var sltCity=  document.getElementById('sltCity');
 //
 // sltCity.onchange =function (){
 //
 //    var selectedOptions= this.selectedOptions;
 //
 //    console.log(selectedOptions);
 //
 //    console.log("value:"+selectedOptions[0].value
 //            +";text:"+selectedOptions[0].text);
 // }

</script>

</html>